{include file="header.html"}

<div id="rightTop">
    <p>商品属性</p>
    <ul class="subnav">
        <li><span>{$lang.manage}</span></li>
        <li><a class="btn1" href="index.php?app=attribute&amp;act=add&amp;cid={$cid}">{$lang.add}</a></li>
  
    </ul>
</div>

<div class="info2">
    <table  class="distinction">
        <!--{if $attributes}-->
        <thead>
        <tr class="tatr1">
            <td><input id="checkall_1" type="checkbox" class="checkall" /></td>
            <td><span class="all_checkbox"><label for="checkall_1">{$lang.checkall}</label></span>属性名称</td>
            <td>商品类型</td>
            <td>录入方式</td>
            <td>{$lang.sort_order}</td>      
            <td>{$lang.handler}</td>
        </tr>
        </thead>
        <!--{/if}-->
     
        <!--{foreach from=$attributes item=attribute}-->
        <tr>
            <td align="center"><input type="checkbox" class="checkitem" value="{$attribute.attr_id}" /></td>
            <td align="center" width="20%">{$attribute.attr_name}</td>
             <td  align="center" width="20%">{$attribute.cate_name}</td>
             <td align="center" width="20%">{$attribute.attr_input_type_name}</td>
            <td ><span class="editable" ectype="inline_edit" fieldname="sort_order" fieldid="{$attribute.attr_id}" datatype="number" title="{$lang.editable}">{$attribute.sort_order}</span></td>
          
            <td class="handler"><span><a href="index.php?app=attribute&amp;act=edit&amp;id={$attribute.attr_id}">{$lang.edit}</a>
                |
                <a href="javascript:if(confirm('{$lang.drop_confirm}'))window.location = 'index.php?app=attribute&amp;act=drop&amp;id={$attribute.attr_id}';">{$lang.drop}</a>
                </span>
                </td>
        </tr>
        <!--{foreachelse}-->
        <tr class="no_data">
            <td colspan="6">{$lang.no_data}</td>
        </tr>
        <!--{/foreach}-->
  
        <tfoot>
            <tr class="tr_pt10">
            <!-- {if $attribute} -->
                <td class="align_center"><label for="checkall1"><input id="checkall_2" type="checkbox" class="checkall"></label></td>
                <td colspan="5" id="batchAction">
                    <span class="all_checkbox"><label for="checkall_2">{$lang.checkall}</label></span>&nbsp;&nbsp;
                    <input class="formbtn batchButton" type="button" value="{$lang.drop}" name="id" uri="index.php?app=attribute&act=drop" presubmit="confirm('{$lang.drop_confirm}');" />
                </td>
            <!--{/if}-->
            </tr>
        </tfoot>
    </table>
</div>

{include file="footer.html"}